package cn.itcast.jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;

public class JDBC_Demo1_test {
    public static void main(String[] args) throws Exception {
        // Class.forName("com.mysql.jdbc.Driver");
        Connection con = DriverManager.getConnection("jdbc:mysql:///test");
        Statement statement = con.createStatement();
        String sql = "update dept set loc = \"12344\" where deptno = 10";
        int i = statement.executeUpdate(sql);
        System.out.println(i);


    }
}
